package learn.builder;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author 宋贤坤
 * @date 2019/3/16 14:09
 */
public class Coach {
    private CourseBuild courseBuild;

    public Coach() {
    }

    public Coach(CourseBuild courseBuild) {
        this.courseBuild = courseBuild;
    }

    public CourseBuild getCourseBuild() {
        return courseBuild;
    }

    public void setCourseBuild(CourseBuild courseBuild) {
        this.courseBuild = courseBuild;
    }

    public Course makeCourse(String courseName, String coursePPT, String courceArticle, String courseVideo, String courseQA) {
        this.courseBuild.buildCourseQA(courseQA);
        this.courseBuild.buildCoursePPT(coursePPT);
        this.courseBuild.buildCourseName(courseName);
        this.courseBuild.buildCourseVideo(courseVideo);
        this.courseBuild.buildCourseArticle(courceArticle);
        return this.courseBuild.makeCourse();
    }
}
